#include "Stack.h"

void test()
{
	stack s;
	stack* ps = &s;
	StackInit(ps);
	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	StackPush(ps, 4);
	StackPush(ps, 5);
	int i = 0;
	while (!StackEmpty(ps))
	{
		printf("%d ", ps->arr[i]);
		StackPop(ps);
		i++;
	}
}
int main()
{
	test();
	return 0;
}